package cn.com.tarotframework.server.oauth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * copyright (C), 2022, 塔罗牌基础架构
 *
 * @program tarot-authorization-server
 * @description 用户信息试图处理类
 * @author Jiang Xincan
 * @version 0.0.1
 * @date 2022/5/20 18:54
 **/
@Schema(title = "用户信息VO", description = "返回用户信息试图")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserSearchVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 2231512615661676780L;

    @Schema(name = "userId", description = "用户ID（UUID）", defaultValue = "1285759156342562818")
    private String userId;

    @Schema(name = "userName", description = "用户名称", type = "String", defaultValue = "塔罗牌", example = "塔罗牌")
    private String userName;

    @Schema(name = "nickName", description = "用户昵称", type = "String", defaultValue = "tarot")
    private String nickname;

    @Schema(name = "password", description = "用户登录密码", type = "String", defaultValue = "123456")
    private String password;

    @Schema(name = "phone", description = "用户电话", type = "String", defaultValue = "18503455667")
    private String phone;

    @Schema(name = "email", description = "用户邮箱", type = "String", defaultValue = "tarot@163.com")
    private String email;
}
